package com.avic.rong.api;

import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * 发送验证码接口
 */
public class UserMobileLoginApi extends BaseApi {

    // 1：注册验证 2：登录安全验证 3：找回密码验证 4：绑定手机验证
    private String code;
    private String mobile;

    public UserMobileLoginApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    public void setArgument(String mobile, String code){
        this.mobile = mobile;
        this.code = code;
    }


    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService service = retrofit.create(HttpPostService.class);
        return service.mobileNumberLogin(mobile,code);
    }



}
